<?php

namespace app\index\handler;

use EasyWeChat\Kernel\Contracts\EventHandlerInterface;

/**
 * 事件消息处理器
 */
class EventMessageHandler implements EventHandlerInterface
{
    public function handle($payload = null)
    {
        switch ($payload['Event']) {
            case 'subscribe': // 关注事件
                return "您好！欢迎使用 EasyWeChat";
                break;
            default:
                return "";
                break;
        }
    }
}
